package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the VERIFICA_FICHA database table.
 * 
 */
@Embeddable
public class VerificaFichaPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;
	private long objetoSolId;
	private long refnumPart;

    public VerificaFichaPK() {
    }

	@Column(name="OBJETO_SOL_ID", unique=true, nullable=false)
	public long getObjetoSolId() {
		return this.objetoSolId;
	}
	public void setObjetoSolId(long objetoSolId) {
		this.objetoSolId = objetoSolId;
	}

	@Column(name="REFNUM_PART", unique=true, nullable=false)
	public long getRefnumPart() {
		return this.refnumPart;
	}
	public void setRefnumPart(long refnumPart) {
		this.refnumPart = refnumPart;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof VerificaFichaPK)) {
			return false;
		}
		VerificaFichaPK castOther = (VerificaFichaPK)other;
		return 
			(this.objetoSolId == castOther.objetoSolId)
			&& (this.refnumPart == castOther.refnumPart);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + ((int) (this.objetoSolId ^ (this.objetoSolId >>> 32)));
		hash = hash * prime + ((int) (this.refnumPart ^ (this.refnumPart >>> 32)));
		
		return hash;
    }
}